<?php

class DateComponent extends BlueprintComponent {
	
	
	function parse(&$element, $value, $format) {
		$doc = $element->document;
		$php = "date('$format', $value)";
		
		$element->childNodes = array($doc->createPHPTextNode($php));
	}
}
?>